package com.example.bankend.service;

import com.example.bankend.entity.Trade;

import java.math.BigDecimal;
import java.util.List;

/**
 * @author luolinila
 * @date 2025/6/18 15:28
*/
public interface TradeService {
    public String Withdraw(String cardID, BigDecimal money, String pass);
    public String saveMoney(String cardID, BigDecimal money, String pass);
    public String transfer(String fromCardID, String toCardID, BigDecimal money, String pass);
    public Long deleteTrade(Integer cardID, Long adminID, String adminName, String adminPass);



    List<Trade> selectAllTrade(Long adminID, String adminName, String adminPass, Long customerID);
    public int deleteAllByCardID(String cardID);
    public int restoreAllByCardID(String cardID);

    List<Trade> getAllTrade(Long adminID, String adminName, String adminPass);
}
